﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Web.Models.LogOnModel>" %>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content" class="ovfl">
        <div class="login">
             <% using (Html.BeginForm("Logon","account", new{@returnurl=Request.Params["ReturnUrl"]},FormMethod.Post,null))
    { %>
            <h2>
                登陆
            </h2>
            <div class="center">
                <%: Html.ValidationSummary(true) %>
                <p>
                    <%: Html.LabelFor(m => m.UserName) %>：
                    <%: Html.TextBoxFor(m => m.UserName, new { @class = "txt" })%><em>*</em>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </p>
                <p>
                    <%: Html.LabelFor(m => m.Password) %>：
                    <%: Html.PasswordFor(m => m.Password, new { @class = "txt" })%><em>*</em>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </p>
                <p>
                    <%: Html.CheckBoxFor(m => m.RememberMe) %>
                    <%: Html.LabelFor(m => m.RememberMe) %>
                </p> 
                <p>
                   如果你是第一次来，请点击<a href="/account/register">这里注册</a>
                </p>                    
                <p>
                    <input type="submit" class="btn_login" value="登录"  />
                </p>
            </div>
            <% } %>
        </div>        
    </div>
</asp:Content>
